.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;

  .modal-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.45);
  }

  &.modal-style {
    .modal-content {
      padding: 2vw;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .modal-body {
      width: 80vw;
      height: 100vw;
      background: #fff;
      border-radius: 4vw;
      overflow: auto;
    }
  }

  .modal-body-bottom {
    position: absolute;
    bottom: 0;
  }

  .close-btn {
    position: absolute;
    width: 8vw;
    height: 8vw;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;

    img {
      width: 100%;
      height: 100%;
    }

    &.bottom {
      bottom: -12vw;
      left: 50%;
      transform: translateX(-50%);
    }

    &.top {
      top: -12vw;
      left: 50%;
      transform: translateX(-50%);
    }

    &.topRight {
      top: -6vw;
      right:-6vw;
    }

    &.topLeft {
      top: -6vw;
      left: -6vw;
    }
  }

  &.modal-hidden {
    display: none;
  }
}
